package cn.iocoder.yudao.module.system.controller.admin.chaoshun.vo.sp;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 超顺物流商品分页 Request VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class SpPageReqVO extends PageParam {

    @Schema(description = "货名，模糊匹配", example = "yudao")
    private String spmc;

    @Schema(description = "收货电话，模糊匹配", example = "16651117024")
    private String shdh;

    @Schema(description = "收货人，模糊匹配", example = "张三")
    private String shr2;

    @Schema(description = "发货电话，模糊匹配", example = "16651117024")
    private String fhdh;

    @Schema(description = "收货人，模糊匹配", example = "张三")
    private String fhr;

    @Schema(description = "收货电话，精确匹配。", example = "16651117024")
    private String jqShdh;

    @Schema(description = "发货电话，精确匹配。", example = "16651117024")
    private String jqFhdh;

    @Schema(description = "录入时间（针对手机浏览器），精确匹配。", example = "1")
    private String lrsjSj;

    @Schema(description = "用户角色，区分收货方还是发货方", example = "0")
    private Integer yhjs;

    @Schema(description = "展示状态，参见 CommonSfEnum 枚举类", example = "1")
    private Integer status;

    @Schema(description = "是否导出", example = "1")
    private Integer sfdc;

    @Schema(description = "创建时间", example = "[2022-07-01 00:00:00, 2022-07-01 23:59:59]")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] lrsj;

    @Schema(description = "是否返货", example = "1")
    private Integer sffh;

    @Schema(description = "是否延迟发货", example = "1")
    private Integer sfyc;

    @Schema(description = "页面类型", example = "1")
    private String type;

    @Schema(description = "商品状态", example = "1")
    private Integer spzt;

    @Schema(description = "安排送货时间", example = "[2022-07-01 00:00:00, 2022-07-01 23:59:59]")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] apshsj;

    @Schema(description = "送货时间（针对手机浏览器），精确匹配。", example = "1")
    private String apshsjSj;

    @Schema(description = "送货人", example = "16651117024")
    private String songhr;

}
